import request from '@/utils/request'

// 查询定额公差维护列表
export function listGclList(query) {
  return request({
    url: '/project/gclList/list',
    method: 'get',
    params: query
  })
}
// 获取指定客户的列表
export function listGclListById(queryParams) {
  return request({
    url: '/project/gclList/gclListById/',
    method: 'get',
    params: queryParams
  })
}

// 查询定额公差维护详细
export function getGclList(gclId) {
  return request({
    url: '/project/gclList/' + gclId,
    method: 'get'
  })
}

// 新增定额公差维护
export function addGclList(data) {
  return request({
    url: '/project/gclList',
    method: 'post',
    data: data
  })
}

// 修改定额公差维护
export function updateGclList(data) {
  return request({
    url: '/project/gclList',
    method: 'put',
    data: data
  })
}

// 删除定额公差维护
export function delGclList(gclId) {
  return request({
    url: '/project/gclList/' + gclId,
    method: 'delete'
  })
}

// 导出定额公差维护
export function exportGclList(query) {
  return request({
    url: '/project/gclList/export',
    method: 'get',
    params: query
  })
}

// 获取定额公差下拉树列表
export function treeSelect(query) {
  return request({
    url: '/project/gclList/treeselect',
    method: 'get',
    params: query
  })
}
